﻿<%@ Control Language="C#" ClassName="AdjustmentFields" %>
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <table border="0" cellpadding="3" cellspacing="1">
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataAdjustmentId" runat="server" Text="Adjustment Id:" AssociatedControlID="dataAdjustmentId" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataAdjustmentId" Text='<%# Bind("AdjustmentId") %>'
                        MaxLength="20" Enabled="false" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator
                            ID="ReqVal_dataAdjustmentId" runat="server" Display="Dynamic" ControlToValidate="dataAdjustmentId"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataAdjustmentDate" runat="server" Text="Adjustment Date:" AssociatedControlID="dataAdjustmentDate" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataAdjustmentDate" Text='<%# Bind("AdjustmentDate", "{0:dd-MM-yyyy}") %>'
                        MaxLength="10" Enabled="false" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator
                            ID="ReqVal_dataAdjustmentDate" runat="server" Display="Dynamic" ControlToValidate="dataAdjustmentDate"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataTotalAmountIn" runat="server" Text="Total Amount In:" AssociatedControlID="dataTotalAmountIn" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataTotalAmountIn" Text='<%# Bind("TotalAmountIn", "{0:#,##0}") %>'
                        Enabled="false" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTotalAmountIn"
                            runat="server" Display="Dynamic" ControlToValidate="dataTotalAmountIn" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator
                                ID="RangeVal_dataTotalAmountIn" runat="server" Display="Dynamic" ControlToValidate="dataTotalAmountIn"
                                ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999"
                                Type="Double"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataTotalAmountOut" runat="server" Text="Total Amount Out:" AssociatedControlID="dataTotalAmountOut" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataTotalAmountOut" Text='<%# Bind("TotalAmountOut", "{0:#,##0}") %>'
                        Enabled="false" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTotalAmountOut"
                            runat="server" Display="Dynamic" ControlToValidate="dataTotalAmountOut" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator
                                ID="RangeVal_dataTotalAmountOut" runat="server" Display="Dynamic" ControlToValidate="dataTotalAmountOut"
                                ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999"
                                Type="Double"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPreparedBy" runat="server" Text="Prepared By:" AssociatedControlID="dataPreparedBy" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataPreparedBy" DataSourceID="PreparedByWebUserDataSource"
                        DataTextField="Name" DataValueField="UserId" SelectedValue='<%# Bind("PreparedBy") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required"
                        Enabled="false" />
                    <data:WebUserDataSource ID="PreparedByWebUserDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"
                        CssClass="text-input" Enabled="false"></asp:TextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
